//
//  JTCSMSingle.m
//  TP
//
//  Created by apple on 16/3/10.
//  Copyright © 2016年 姜小琦. All rights reserved.
//

#import "JTCSMSingle.h"

#import "JTCSM.h"

static JTCSMSingle *single = nil;

@implementation JTCSMSingle

+ (JTCSMSingle *)shareSingle
{
    @synchronized(self){
        if(single == nil){
            single =[ [JTCSMSingle alloc] init];
        }
        
    }
    return single;
}


#pragma mark  消息数目
- (void)getmessageNumber{
    NSLog(@"%@",KUSERDEFAULTGET(KInfoKey));
//    LoadData *request = [[LoadData alloc]init];
//    [request loadDataPostAsynchronousWithURL:KURLPOSTHeadr(@"order_count") withDict:@{@"token":KTokenString} superView:nil isAddtag:NO Block:^(id result) {
//        NSLog(@"-----%@",result);
//        NSString *isreturn = [NSString stringWithFormat:@"%@",[result objectForKey:@"result"]];
//        if ([isreturn isEqualToString:@"1"]) {
//            NSDictionary *dict = KResultOfKey(@"data");
//            OrderNumberModel *model = [OrderNumberModel whc_ModelWithJson:dict];
//            [JTCSMSingle shareSingle].orderNumModel = model;
//            [[NSNotificationCenter defaultCenter] postNotificationName:@"reloadMessageinfo" object:self];
//            
//        }
//        
//    }];
}


@end

